package com.xms.security.identity;

import com.xms.core.org.UserContext;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;

public interface IAuthenticationService {

    UserContext getAuthenticatedUser(HttpServletRequest request);

    boolean isAuthenticated(HttpServletRequest request);

    void signIn(HttpServletRequest request, UserContext user, boolean persistent) throws ServletException;

    void signOut(HttpServletRequest request) throws ServletException;

    String getId(HttpServletRequest request);
}
